import { Navigate } from 'react-router-dom'
import Home from '../views/Home'
import Detail from '../views/Detail'
import Serch from '../views/Serch'
import Todo from '../views/Todo'
const  route=[
    {
        path:'/',
        element:<Navigate to='/Home'></Navigate>
    },
    {
        path:'/Home',
        element:<Home></Home>
    },
    {
        path:'/Detail',
        element:<Detail></Detail>
    },
    {
        path:'/Serch',
        element:<Serch></Serch>
    },
    {
        path:'/Todo',
        element:<Todo></Todo>
    },
]
export default route